#![allow(non_snake_case)]
use shq_common::prelude::Size;
use thaw_utils::class_list;
use leptos::prelude::*;
#[component]
pub fn Loading(#[prop(optional, into)] size: Size) -> impl IntoView {
    let size_class=size.to_class("loading");
    view! {
        <div class=class_list!["flex items-center justify-center h-screen", size_class]>
            <div class="bg-blue-500 text-white p-4">
                <span class="loading loading-spinner loading-lg"></span>
            </div>
        </div>
    }
}
